<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.box1{
				width: 400px;
				height: 220px;
				border: 1px solid black;
				transition: 2s;
			}
			.red{
				width: 60px;
				height: 60px;
				background: red;
				transition: 0.5s;
			}
			.box1:nth-child(1):hover .red{
				transform: translate(170px,80px);
				
			}
			.box1:nth-child(2):hover .red{
				transform: translate(340px);
			}
			.box1:nth-child(3):hover .red{
				transform: translateY(160px);	
			}
			.box1:nth-child(4):hover .red{
				transform: translate(160px,10px);	
			}
		</style>
	</head>
	<body>
		<div class="box1">
			<div class="red">
				
			</div>
		</div>
		<div class="box1">
			<div class="red">
				
			</div>
		</div>
		<div class="box1">
			<div class="red">
				
			</div>
		</div>
		<div class="box1">
			<div class="red">
				
			</div>
		</div>
	</body>
</html>